﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchBulletin.ascx.vb" Inherits="WebForm_ManageBulletin_SearchBulletin" %>
<table cellpadding="0" cellspacing="0" width="95%">
    <tr>
        <td>
            <table cellpadding="0" cellspacing="0" width="100%">
               <tr>
                <td align="right" width="15%">
                    <asp:Label ID="lblBulletinSubject" runat="server" meta:resourcekey="lblBulletinSubject"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtBulletinSubject" runat="server" meta:resourcekey="txtBulletinSubject"></asp:TextBox>
                </td>
              </tr>
              <tr>
                 <td align="right" width="15%">
                    <asp:Label ID="lblIssueDate" runat="server" meta:resourcekey="lblIssueDate"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtStartDate" runat="server"></asp:TextBox>
                    <ajaxToolkit:CalendarExtender ID="ceStartDate" runat="server" TargetControlID="txtStartDate"></ajaxToolkit:CalendarExtender>
                     ~
                    <asp:TextBox ID="txtEndDate" runat="server"></asp:TextBox>
                    <ajaxToolkit:CalendarExtender ID="ceEndDate" runat="server" TargetControlID="txtEndDate"></ajaxToolkit:CalendarExtender> 
                    <asp:CompareValidator ID="cvStartDate" runat="server" Display="None" ControlToValidate="txtStartDate" ValidationGroup="vQuery" SetFocusOnError="true" Type="Date" Operator="DataTypeCheck" meta:resourcekey="cvStartDate"></asp:CompareValidator>
                    <asp:CompareValidator ID="cvEndDate" runat="server" Display="None" ControlToValidate="txtEndDate" ValidationGroup="vQuery" SetFocusOnError="true" Type="Date" Operator="DataTypeCheck" meta:resourcekey="cvEndDate"></asp:CompareValidator>
                </td></tr>
                <tr>
                <td align="right" colspan="2">
                    <asp:Button ID="btnQuery" runat="server" meta:resourcekey="btnQuery" ValidationGroup="vQuery" />
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
                    ShowSummary="false" ValidationGroup="vQuery" />
                </td>
              </tr>  
            </table>
        </td>
    </tr>
</table>
<br />
<My:MyGridView ID="gv" runat="server" SkinID="pager" AllowHoverSelect="False" DataKeyNames="BulletinID" AllowHoverEffect="False" MySortDirection="Ascending" meta:resourcekey="gv">
    <Columns>
        <asp:BoundField DataField="BulletinSubject" meta:resourcekey="bfBulletinSubject" />
        <asp:BoundField DataField="issuedate_date" meta:resourcekey="bfIssueDate" />
        <asp:BoundField DataField="strtopmost" meta:resourcekey="bfTopmost" />
<%--        <asp:BoundField DataField="strusertype" meta:resourcekey="bfUserType" />
--%>        <asp:TemplateField>        
            <ItemTemplate>
                <asp:LinkButton ID="lknEdit" CommandName="Update" runat="server" meta:resourcekey="lknEdit"></asp:LinkButton>
            </ItemTemplate>
        </asp:TemplateField>        
        <asp:TemplateField>        
            <ItemTemplate>
                <asp:LinkButton ID="lknDelete" CommandName="Delete" runat="server" meta:resourcekey="lknDelete"></asp:LinkButton>
                            <ajaxToolkit:ConfirmButtonExtender ID="cbDelete" runat="server" TargetControlID="lknDelete"
                                meta:resourcekey="cbDelete">
                            </ajaxToolkit:ConfirmButtonExtender>   
            </ItemTemplate>
        </asp:TemplateField> 
    </Columns>
</My:MyGridView>
